package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.setting.eneity.User;
import com.bjpowernode.crm.vo.PageinationVO;
import com.bjpowernode.crm.workbench.eneity.Tran;
import com.bjpowernode.crm.workbench.eneity.TranHistory;
import com.bjpowernode.crm.workbench.eneity.TranTitle;
import com.bjpowernode.crm.workbench.exception.TranException;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
public interface TranService {
    //分页查询
    PageinationVO<Tran> pageList(Map<String, String> params);
    //查询用户信息
    List<User> getUserList();
    //添加交易信息
    boolean save(Map<String, String> params) throws TranException;
    //交易信息详细信息
    Map<String,Object> getTranById(String id);
    //根据交易记录id查询交易历史列表
    List<TranHistory> getTranHistoryList(String tranId);
    //交易阶段变更操作
    Boolean changeStage(Map<String, String> params) throws TranException;
    //获取交易统计图表需要的总记录条数和交易阶段以及每个交易阶段的记录条数
    PageinationVO<Map<String,String>> getTranStageAndCount();
}
